<%@ Page Language="C#" MasterPageFile="~/Master/PlacementManager.master" Theme="YUI"
    StylesheetTheme="YUI" AutoEventWireup="true" CodeFile="ImportStudentData.aspx.cs"
    Inherits="Home_ImportStudentData" Title="PlacementManager: Import Student Data" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:ScriptManager ID="scrptManagerImportStudentData" runat="server">
    </asp:ScriptManager>
    <h1>
        Import Student Data</h1>
    <p>
        &nbsp; Use this form to import student data into the system.</p>
    <span id='myHiddenDiv' style='display: none'>
        <%--
                <img src='' id='myAnimatedImage' align='absMiddle' />--%>
        <br />
    </span>
    <br />
    <p>
        <asp:FileUpload ID="fileupStudentList" runat="server" /></p>
    <br />
    <p>
        <asp:Button ID="btnImportStudents" runat="server" CssClass="inputbutton" OnClick="btnImportStudents_Click"
            Text="Start" />
        <asp:Button ID="btnStop" runat="server" CssClass="inputbutton" Text="Stop" OnClick="btnStop_Click" /></p>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="30" DynamicLayout="false"
        AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div class="progressBackgroundFilter">
            </div>
            <div class="processMessage">
                <p align="center">
                    <br />
                    <img src="../Images/bigrotation2.gif" alt="Loading" align="middle" />
                    <br />
                    Loading...</p>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <br />
    <br />
    <asp:UpdatePanel ID="updtPnlImportData" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Label ID="lblMessage" runat="server"></asp:Label><br />
            <asp:Label ID="lblProcessed" runat="server"></asp:Label>&nbsp;
            <asp:Label ID="lblUnprocessed" runat="server" ForeColor="Red"></asp:Label>
            <br />
            <asp:Label ID="lblInserted" runat="server"></asp:Label>
            <br />
            <asp:Label ID="lblUpdated" runat="server"></asp:Label>
            <br />
            <br />
            <asp:Timer ID="ImportTimer" runat="server" Enabled="False" Interval="1" OnTick="ImportTimer_Tick">
            </asp:Timer>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button ID="btnPause" runat="server" CssClass="inputbutton" Height="19px" OnClick="btnPause_Click"
                Text="Pause" Width="104px" Visible="False" />
            <asp:Button ID="btnResume" runat="server" CssClass="inputbutton" Height="19px" OnClick="btnResume_Click"
                Text="Resume" Width="104px" Visible="False" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:Label ID="lblErrors" Text="Errors:" runat="server" Visible="False"></asp:Label>
    <br />
    <asp:UpdatePanel ID="updtPnlUnProcessed" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:TextBox ID="TextBox1" runat="server" Height="148px" TextMode="MultiLine" Width="521px"
                ForeColor="Red" Visible="False"></asp:TextBox>
            <br />
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                BorderStyle="Solid" EnableSortingAndPagingCallbacks="True">
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
